.class public Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$OnlineMusicAdapter;
.super Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;
.source "OnlineMusicFragment.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "OnlineMusicAdapter"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter<",
        "Lcom/esfile/screen/recorder/picture/picker/adapter/holder/OnlineMusicViewHolder;",
        ">;"
    }
.end annotation


# instance fields
.field private d:Lcom/esfile/screen/recorder/picture/picker/adapter/holder/e;


# direct methods
.method public constructor <init>(Ljava/util/List;Lcom/esfile/screen/recorder/picture/picker/adapter/holder/e;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/picture/picker/entity/b;",
            ">;",
            "Lcom/esfile/screen/recorder/picture/picker/adapter/holder/e;",
            ")V"
        }
    .end annotation

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;-><init>()V

    .line 2
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->a:Ljava/util/List;

    .line 3
    iput-object p2, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$OnlineMusicAdapter;->d:Lcom/esfile/screen/recorder/picture/picker/adapter/holder/e;

    return-void
.end method


# virtual methods
.method public a(Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;)I
    .locals 2

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->a:Ljava/util/List;

    const/4 v1, 0x0

    .line 6
    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/picture/picker/entity/b;

    .line 7
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->c()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, p1}, Ljava/util/List;->indexOf(Ljava/lang/Object;)I

    move-result p1

    return p1
.end method

.method public a(Lcom/esfile/screen/recorder/picture/picker/adapter/holder/OnlineMusicViewHolder;I)V
    .locals 2
    .param p1    # Lcom/esfile/screen/recorder/picture/picker/adapter/holder/OnlineMusicViewHolder;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->a:Ljava/util/List;

    iget v1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->c:I

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/picture/picker/entity/b;

    .line 2
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->c()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;

    .line 3
    iget v1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->c:I

    invoke-virtual {p1, v0, p2, v1}, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/OnlineMusicViewHolder;->a(Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;II)V

    .line 4
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$OnlineMusicAdapter;->d:Lcom/esfile/screen/recorder/picture/picker/adapter/holder/e;

    invoke-virtual {p1, p2}, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/OnlineMusicViewHolder;->a(Lcom/esfile/screen/recorder/picture/picker/adapter/holder/e;)V

    return-void
.end method

.method public b(Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;)I
    .locals 2

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->a:Ljava/util/List;

    .line 5
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;->g()I

    move-result v1

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/picture/picker/entity/b;

    .line 6
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->c()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, p1}, Ljava/util/List;->indexOf(Ljava/lang/Object;)I

    move-result p1

    return p1
.end method

.method public b(II)V
    .locals 1

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->c:I

    if-nez v0, :cond_0

    .line 2
    invoke-virtual {p0, p1}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyItemChanged(I)V

    goto :goto_0

    .line 3
    :cond_0
    invoke-virtual {p0, p2}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyItemChanged(I)V

    :goto_0
    return-void
.end method

.method public getItemCount()I
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->a:Ljava/util/List;

    if-eqz v0, :cond_0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->a:Ljava/util/List;

    iget v1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->c:I

    .line 2
    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/picture/picker/entity/b;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->c()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method public getItemViewType(I)I
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->a:Ljava/util/List;

    iget v1, p0, Lcom/esfile/screen/recorder/picture/picker/adapter/SelectableAdapter;->c:I

    .line 2
    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/picture/picker/entity/b;

    .line 3
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/picker/entity/b;->c()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/esfile/screen/recorder/picture/picker/data/AudioInfo;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;->e()Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem$MediaType;

    move-result-object p1

    iget p1, p1, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem$MediaType;->value:I

    return p1
.end method

.method public bridge synthetic onBindViewHolder(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)V
    .locals 0
    .param p1    # Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 1
    check-cast p1, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/OnlineMusicViewHolder;

    invoke-virtual {p0, p1, p2}, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$OnlineMusicAdapter;->a(Lcom/esfile/screen/recorder/picture/picker/adapter/holder/OnlineMusicViewHolder;I)V

    return-void
.end method

.method public bridge synthetic onCreateViewHolder(Landroid/view/ViewGroup;I)Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
    .locals 0
    .param p1    # Landroid/view/ViewGroup;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .annotation build Landroidx/annotation/NonNull;
    .end annotation

    .line 1
    invoke-virtual {p0, p1, p2}, Lcom/esfile/screen/recorder/picture/picker/fragment/OnlineMusicFragment$OnlineMusicAdapter;->onCreateViewHolder(Landroid/view/ViewGroup;I)Lcom/esfile/screen/recorder/picture/picker/adapter/holder/OnlineMusicViewHolder;

    move-result-object p1

    return-object p1
.end method

.method public onCreateViewHolder(Landroid/view/ViewGroup;I)Lcom/esfile/screen/recorder/picture/picker/adapter/holder/OnlineMusicViewHolder;
    .locals 3
    .param p1    # Landroid/view/ViewGroup;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .annotation build Landroidx/annotation/NonNull;
    .end annotation

    .line 2
    new-instance p2, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/OnlineMusicViewHolder;

    invoke-virtual {p1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    sget v1, Les/y4;->__picker_audio_item:I

    const/4 v2, 0x0

    .line 3
    invoke-virtual {v0, v1, p1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    invoke-direct {p2, p1}, Lcom/esfile/screen/recorder/picture/picker/adapter/holder/OnlineMusicViewHolder;-><init>(Landroid/view/View;)V

    return-object p2
.end method
